package com.asset.dispoal.address.service.converter;

import com.asset.dispoal.address.domain.db.entity.SysAddressDo;
import com.asset.dispoal.address.dto.SysAddressRequest;
import com.asset.dispoal.address.dto.SysAddressResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/2/16$
 */
@Mapper
public interface AddressConverter {

    AddressConverter INSTANCE = Mappers.getMapper(AddressConverter.class);

    SysAddressDo reqToDo(SysAddressRequest request);

    SysAddressResponse doToRes(SysAddressDo sysAddressDo);

    List<SysAddressResponse> dosToRes(List<SysAddressDo> doList);
}
